import time


def sumOfN(n):
    start=time.time()
    theSum=0
    for i in range(1,n+1):
        theSum +=i
    end=time.time()
    return theSum,end-start


a=sumOfN(100000000)
print(a)